package service;

import dao.UserDao2;
import pojo.user;

import java.sql.SQLException;
import java.util.List;

public class Userservice {
    UserDao2 userDao2=new UserDao2();
    //查询所有用户，并且一行显示一个用户
    public List<user> userList(){
        try {
            List<user> userList=userDao2.selectAll();
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        return userList();
    }
}
